package com.hfjc.util;


import com.hfjc.entity.ResultBack;

public class ResultBackUtil {
	
	public static ResultBack success(Object object){
		ResultBack resultBack = new ResultBack();
		resultBack.setCode("0");
		resultBack.setMsg("成功！");
		resultBack.setData(object);
		return resultBack;
	}
	public static ResultBack error(Integer code,String error){
		ResultBack resultBack = new ResultBack();
		resultBack.setCode("1");
		resultBack.setMsg(error);
		return resultBack;
	}

}
